<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="ctx" th:content="${#httpServletRequest.getContextPath()}"/>
    <title>404</title>
    <link th:href="@{/css/admin/base-v2.css}" rel="stylesheet">
    <link th:href="@{/css/admin/404.css}" rel="stylesheet">
</head>
<body>

    <div class="container">
        <div class="content">
            <img th:src="@{/img/404.jpg}">
            <p>很抱歉，页面它不小心迷路了~</p>
            <button type="button" th:onclick="'javascript:back()'" id="btn">返回首页</button>
        </div>
    </div>
    <script th:src="@{/lib/jquery.min.js}"></script>
    <script>
        var context = $("meta[name='ctx']").attr("content") || '';
        function back() {
            window.location.href = context + "/web/goIndex";
        }
    </script>
</body>
</html>